﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Modellayer
{
    [DataContract]
    public class Seat
    {
        [DataMember]
        public int seatNumber { get; set; }

        [DataMember]
        public int status { get; set; }

        [DataMember]
        public int showId { get; set; }

        [DataMember]
        public int reservationId { get; set; }

        public Seat(int seatNumber, int showId)
        {
            this.seatNumber = seatNumber;
            this.showId = showId;
            status = 0;
        }

        public Seat()
        {
 
        }

        public void reserveSeat(int reservationId)
        {
            status = 2;
            this.reservationId = reservationId;
        }

        public void lockSeat()
        {
            status = 1;
        }

        public void unLockSeat()
        {
            status = 0;
        }

        //[DataMember]
        //public int getSetSeatNumber
        //{
        //    get { return showId; }
        //    set { showId = value; }
        //}

        //[DataMember]
        //public int getSetReservationsID
        //{
        //    get { return reservationId; }
        //    set { reservationId = value; }
        //}

        //[DataMember]
        //public int getSetShowId
        //{
        //    get { return showId; }
        //    set { showId = value; }
        //}

        //[DataMember]
        //public int getSetStatus
        //{
        //    get { return status; }
        //    set { status = value; }
        //}

    }
}
